package GoftIclass

import (
	"github.com/gin-gonic/gin"
	"wskyygyso/casually/goft"
)

type IndexClass struct {
}

func NewIndexClass() *IndexClass {
	return &IndexClass{}
}

func (c *IndexClass) String() string {
	return "index"
}

func (c *IndexClass) Index(ctx *gin.Context) goft.View {
	ctx.Set("name", "wskyygysi")
	return "index"
}

func (c *IndexClass) Bind(goft *goft.Goft) {
	goft.Handle("GET", "/", c.Index)
}
